export interface RecommendParams {
  phone: string;
  date: string;
}

/**
 * 移动通信套餐的详情
 */
export interface MobilePackageDetail {
  id: string;
  name: string;
  generation: number;
  baseCharge: number;
  hasFreeDomesticData: number;
  hasFreeOverseaData: number;
  domesticDataExtraCharge: number;
  overseaDataExtraCharge: number;
  hasFreeDomesticVoiceCall: number;
  hasFreeOverseaVoiceCall: number;
  domesticVoiceCallExtraCharge: number;
  overseaVoiceCallExtraCharge: number;
  hasFreeDomesticVoiceRecv: number;
  hasFreeOverseaVoiceRecv: number;
  domesticVoiceRecvExtraCharge: number;
  overseaVoiceRecvExtraCharge: number;
  hasFreeDomesticMsg: number;
  hasFreeOverseaMsg: number;
  domesticMsgExtraCharge: number;
  overseaMsgExtraCharge: number;
}

/**
 * 用户的简要信息
 */
export interface UserSimple {
  userId: string;
  phone: string;
  nickname: string;
}

/**
 * 用户当前的使用情况
 */
export interface UsingStatus {
  phone: string;
  recordTime: string;
  pkgId: string;
  usedDomesticData: number;
  usedOverseaData: number;
  usedDomesticMsg: number;
  usedOverseaMsg: number;
  usedDomesticVoiceCall: number;
  usedOverseaVoiceCall: number;
  usedDomesticVoiceRecv: number;
  usedOverseaVoiceRecv: number;
  appPreference1: string;
  appPreference2: string;
  appPreference3: string;
}

export interface RecommendResult {
  packages: MobilePackageDetail[];
  user: UserSimple;
  usingStatus: UsingStatus;
  curPackage: MobilePackageDetail;
}
